#!/bin/bash

cmake=$1
project=$2

[ -z "$project" ] && echo "Error: empty project path!" && exit -1

cd "$project"
[ ! -d build-dir ] && mkdir build-dir
cd build-dir
$cmake ..
make
